//
//  NSObject+DP.m
//  DailyPhoto
//
//  Created by 黄凯展 on 16/7/29.
//  Copyright © 2016年 ShengCheng. All rights reserved.
//

#import "NSObject+DP.h"
#import "objc/runtime.h"

@implementation NSObject (DP)

static const void *kSelected_DP_Key = &kSelected_DP_Key;

- (void)setSelected_DP:(BOOL)selected_DP
{
    objc_setAssociatedObject(self, kSelected_DP_Key, @(selected_DP), OBJC_ASSOCIATION_ASSIGN);
}

- (BOOL)isSelected_DP
{
    return [objc_getAssociatedObject(self, kSelected_DP_Key) boolValue];
}

@end
